<?php

/**
 * @copyright 2012
 */
 

    function CreateTextNode($doc,$name,$value)
    {
        $nameNode = $doc->createElement( $name );
        $nameNode->appendChild($doc->createTextNode( $value ));
        return $nameNode;
        //$s->appendChild($nameNode);
    }
    function AppendNewTextNode($doc,$name,$value,$parentNode)
    {
        $parentNode->appendChild(CreateTextNode($doc,$name,$value));
    }

?>